package edu.sctu.nieyu.day20150510.functioncall;

/**
 * Created by user01 on 2015/5/10.
 */
public class Mainprint {
    public static void main(String[] args) {

        TextOne textOne = new TextOne();
        textOne.number = 5;
        TextTwo textTwo = new TextTwo();

       TextThree textThree = textTwo.getMessage(textOne);
        System.out.println(textThree.number+":"+textTwo.sum);

        textTwo.getMessage(textOne);
        System.out.println(textThree.number+":"+textTwo.sum);

        TextThree textThree1 = textTwo.getMessage(textOne);
        System.out.println(textThree1.number+":"+textTwo.sum);
    }
}
